﻿#include "Global.h"
#include "OraclDbThread.h"
#include "AccessDbThread.h"
#include "assert.h"
#include "CSyncDbThread.h"


QOraclDbThread* g_pDbThread=NULL;//oracle数据库线程

AccessDbThread* g_pLocalDbThread=NULL;//本地Access数据库操作线程

AccessDbThread* g_paccessDbThread=NULL;//同步数据至本地Access数据库线程

QVector<SamRegItem*> g_vecSamRegItem;
QVector<MakeSamRegItem*> g_vecMakeSamRegItem;
QMap<QString, float> g_mapSamReg;

QMutex g_csLock;//g_vecSamReg锁

int g_nProjectNo = 0;//项目标识 1：兆光 2：临汾热电 3：岱海 4科右中 5西来峰 6河津

int g_n6mm1PrintNum = 0;//6mm二维码打印张数

int g_n6mm2PrintNum = 0;//6mm二维码打印张数

int g_n3mmPrintNum = 0; //3mm二维码打印张数

int g_n2mm3PrintNum = 0;//0.2mm二维码打印张数

int g_n2mm2PrintNum = 0;//0.2mm二维码打印张数

int g_nSampleCodePrintNum = 0;//采样码打印张数

int g_nChangedFlag = 0;//防止重复计算重量标识符

float g_fStandWeight = 0;//ini配置文件合样归批参考标准

int g_nIsOpenPrintExamineCode = 0;//是否打开打印二维码功能

QString g_strOperName = "";

QString g_strRoleLevel = "";//全局用户权限级别

int g_nOracleorAccess = 0; //0:Oracle,1:Access

CSyncDbThread* g_pSyncDbThread=NULL;//数据同步操作线程